package com.mo.design.pattern.creational.builder;

public class CarBuilderDirector {
    public Car buildElectricCar(CarBuilder builder) {
        builder.builderCar();
        builder.addEngine("Electric 150 kw");
        builder.addBatteries("1500 kwh");
        builder.addTransmission("Manual");
        for (int i = 0; i < 4; i++) {
            builder.addWheel("20x12x30");
        }
        builder.paint("red");
        return builder.getCar();
    }

    public Car buildHybridCar(CarBuilder builder) {
        builder.builderCar();
        builder.addEngine("Electric 150 kw");
        builder.addBatteries("1500 kwh");
        builder.addTransmission("Manual");
        for (int i = 0; i < 4; i++) {
            builder.addWheel("20x12x30");
        }
        builder.addGasTank("1500 kwh");
        builder.addEngine("Gas 1600cc");
        return builder.getCar();
    }
}
